<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/4
 * Time: 16:58
 */
namespace app\api\controller\v1;

use app\api\validate\IDMustPositveInt;
use think\Controller;
use app\api\service\Pay as PayService;

class Pay extends Controller {

    public function preOrder($id = ''){
        (new IDMustPositveInt())->goCheck();
        $pay = new PayService($id);
        $pay->pay();
    }
}